<?php
return array(
	'observersList' => array(
		
		/**
		 * Module "news", controller "news" 
		 */

		'news_add_post' => array(
			'observers' => array(
				'Site_Model_Observer_AttacheNews',
				'Site_Model_Observer_SiteClearCache'
			)
		),
		'news_edit_post' => array(
			'observers' => array(
				'Site_Model_Observer_AttacheNews',
				'Site_Model_Observer_SiteClearCache'
			)
		),

		/**
		 * Module "gallery", controller "album" 
		 */

		'gallery_add_post' => array(
			'observers' => array(
				'Gallery_Model_Observer_GalleryClearCache',
				'Gallery_Model_Observer_AlbumClearCache',
				'Gallery_Model_Observer_ImageClearCache'
			)
		),
		'gallery_edit_post' => array(
			'observers' => array(
				'Gallery_Model_Observer_GalleryClearCache',
				'Gallery_Model_Observer_AlbumClearCache',
				'Gallery_Model_Observer_ImageClearCache'
			)
		),
		'gallery_delete_post' => array(
			'observers' => array(
				'Gallery_Model_Observer_GalleryClearCache',
				'Gallery_Model_Observer_AlbumClearCache',
				'Gallery_Model_Observer_ImageClearCache'
			)
		),
		
		'gallery_album_add_post' => array(
			'observers' => array(
				'Site_Model_Observer_AttacheAlbum',
				'Site_Model_Observer_SiteClearCache',
				'Gallery_Model_Observer_AlbumClearCache'
			)
		),
		'gallery_album_edit_post' => array(
			'observers' => array(
				'Site_Model_Observer_AttacheAlbum',
				'Site_Model_Observer_SiteClearCache',
				'Gallery_Model_Observer_AlbumClearCache',
				'Gallery_Model_Observer_ImageClearCache'
			)
		),
		'gallery_album_delete_post' => array(
			'observers' => array(
				'Gallery_Model_Observer_AlbumClearCache',
				'Gallery_Model_Observer_ImageClearCache',
				'Site_Model_Observer_SiteClearCache',
			)
		),
		
		'gallery_image_add_post' => array(
			'observers' => array(
				'Gallery_Model_Observer_ImageClearCache'
			)
		),
		'gallery_image_edit_post' => array(
			'observers' => array(
				'Gallery_Model_Observer_ImageClearCache'
			)
		),
		'gallery_image_delete_post' => array(
			'observers' => array(
				'Gallery_Model_Observer_ImageClearCache'
			)
		),
		
		'gallery_image_editable_update_post' => array(
			'observers' => array(
				'Gallery_Model_Observer_AlbumClearCache'
			)
		),
		'gallery_image_editable_move_post' => array(
			'observers' => array(
				'Gallery_Model_Observer_AlbumClearCache'
			)
		),
		
		'gallery_image_editable_delete_post' => array(
			'observers' => array(
				'Gallery_Model_Observer_AlbumClearCache'
			)
		),

		/**
		 * Module "shop", controller "product" 
		 */
		
		'shop_product_add_post' => array(
			'observers' => array(
				'Shop_Model_Observer_AttacheProductToCategory',
				'Shop_Model_Observer_AttacheImageToProduct',
				'Shop_Model_Observer_AttacheAttribsValuesToProduct',
				'Shop_Model_Observer_ClearCacheAll'
			)
		),
		
		'shop_product_edit_post' => array(
			'observers' => array(
				'Shop_Model_Observer_AttacheProductToCategory',
				'Shop_Model_Observer_AttacheImageToProduct',
				'Shop_Model_Observer_AttacheAttribsValuesToProduct',
				'Shop_Model_Observer_ClearCacheAll'
			)
		),
		
		'shop_product_delete_post' => array(
			'observers' => array(
				'Shop_Model_Observer_ClearCacheAll'
			)
		),
		
		'shop_attrset_add_post' => array(
			'observers' => array(
				'Shop_Model_Observer_AttacheAttribsToAttrSet',
			)
		),
		
		
		'shop_category_add_post' => array(
			'observers' => array(
				'Shop_Model_Observer_ClearCacheAll'
			)
		),
		'shop_category_edit_post' => array(
			'observers' => array(
				'Shop_Model_Observer_ClearCacheAll'
			)
		),
		'shop_category_delete_post' => array(
			'observers' => array(
				'Shop_Model_Observer_ClearCacheAll'
			)
		),

		
		'shop_manufacturer_add_post' => array(
			'observers' => array(
				'Shop_Model_Observer_ClearCacheAll'
			)
		),
		'shop_manufacturer_edit_post' => array(
			'observers' => array(
				'Shop_Model_Observer_ClearCacheAll'
			)
		),
		'shop_manufacturer_delete_post' => array(
			'observers' => array(
				'Shop_Model_Observer_ClearCacheAll'
			)
		),
		
		'shop_attrset_edit_post' => array(
			'observers' => array(
				'Shop_Model_Observer_AttacheAttribsToAttrSet',
			)
		),
		
		'shop_promotion_add_post' => array(
			'observers' => array(
				'Shop_Model_Observer_ClearCacheAll'
			)
		),
		
		'shop_promotion_edit_post' => array(
			'observers' => array(
				'Shop_Model_Observer_ClearCacheAll'
			)
		),
		
		'shop_promotion_delete_post' => array(
			'observers' => array(
				'Shop_Model_Observer_ClearCacheAll'
			)
		),
		
		'shop_model_hascategory_post_editableUpdate' => array(
			'observers' => array(
				'Shop_Model_Observer_ClearCacheAll'
			)
		),
		
		/**
		 * Module "site", controller "site" 
		 */

		'site_edit_post' => array(
			'observers' => array(
				'Site_Model_Observer_SiteClearCache'
			)
		),
		
		'site_delete_post' => array(
			'observers' => array(
				'Site_Model_Observer_SiteClearCache'
			)
		),
		
		'site_site_list_pre' => array(
			'observers' => array(
				'Site_Model_Observer_DuplicateToLocale',
				'Site_Model_Observer_CopyToLocale'
			)
		),
		
		/**
		 * Module "system", controller "template" 
		 */
		
		'system_template_edit_post' => array(
			'observers' => array(
				'Site_Model_Observer_SiteClearCache'
			)
		),
		'system_template_delete_post' => array(
			'observers' => array(
				'Site_Model_Observer_SiteClearCache'
			)
		)
	)
);